The style function here can also be called before the corresponding
class_init had a chance to create the quark. Fix this.
NULL, NULL,
_gtk_marshal_VOID__VOID,
G_TYPE_NONE, 0);
-
- quark_default_style = g_quark_from_static_string ("gtk-legacy-default-style");
}
static void
{
GtkStyle *default_style;
+ if G_UNLIKELY (quark_default_style == 0)
+ quark_default_style = g_quark_from_static_string ("gtk-legacy-default-style");
+
default_style = g_object_get_qdata (G_OBJECT (screen), quark_default_style);
if (default_style == NULL)
{